<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 使用cdn引入vue3 -->
    <script src="https://cdn.jsdelivr.net/npm/vue@3.2.26/dist/vue.global.prod.js"></script>
    <!-- 使用cdn引入axios -->
     script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
</head>

<body>
    <div id="app">
        <h1>{{userName}}</h1>
    </div>

    <script>
        const { createApp,ref } = Vue;
        const app = createApp({
            setup() {
                const userName = ref("Ace");
                return {userName};
            }
        });
        app.mount('#app');
    </script>
</body>

</html>